<?php defined("MAIN_DIR") or die("No direct access");

$id = UV::rInt($route->POST("id"));
$text = UV::rStr($route->POST("text"));

$query = "update `photos` set `text` = '{$text}' where `id` = '{$id}' limit 1";
if ($db->sendQuery($query) !== false){
	echo "success";
}

?>